﻿## For chocolatey
# $scriptBlock = {
#     Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
#     choco feature enable -n allowGlobalConfirmation
#     # choco install msys2
#     choco install nerd-fonts-firacode
#     choco install mingw -y
# }
# Start-Process -FilePath "powershell" -Verb RunAs -ArgumentList "-Command", "& { Invoke-Command -ScriptBlock $scriptBlock }"

## For msys2
# msys2_shell -defterm -here -no-start -msys -lic "pacman -Sy openssh rsync zsh"
# msys2_shell -defterm -here -no-start -msys -lic 'sh -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"'


# 通用包
powershell $env:USERPROFILE/chezmoi/windows/init-before.ps1

powershell $env:USERPROFILE/chezmoi/windows/init-general.ps1
powershell $env:USERPROFILE/chezmoi/windows/init-personal.ps1

powershell $env:USERPROFILE/chezmoi/windows/init-after.ps1


